package Lab03.Question5;

class Person {
    String name, sex;
    int age;
    public Person(String name, int age, String sex) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getAge() {
        return this.age;
    }

    public void work() {
        System.out.println("working");
    }

    public void showAge() {
        System.out.println(this.getAge());
    }
}

public class TestPerson {
    public static void main(String[] args) {
        Person test = new Person("test", 20, "male");
        test.setAge(21);

        System.out.println(test.name+" "+test.sex+" "+test.age);
    }
}


